package com.cms.bs.app.model;

import com.cms.bs.app.model.base.BaseEntity;
import com.fasterxml.jackson.annotation.JsonFormat;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;
import java.util.Date;

/**
* ${name}
*/
@Entity
@Table(name = "${t_name}")
public class ${name} extends BaseEntity<${name}> {
    <#list columns as column>
        /**
        * ${column.comment!}
        */
        <#if column.annotation??>${column.annotation}<br></#if>private ${column.type} ${column.name};
    </#list>

    <#list getters as getter>
        public ${getter.type} get${getter.method}(){
            return ${getter.column};
        }
    </#list>

    <#list setters as setter>
        public void set${setter.method}(${setter.type} ${setter.column}){
            this.${setter.column} = ${setter.column};
        }
    </#list>

    }
